#include<iostream>
#include<vector>

using namespace std;

void matrixPrint(vector<vector<int>> v) {
  cout << "[";
  for (int i = 0; i < v.size(); i++) {
    cout << "[";
    for (int j = 0; j < v[i].size(); j++) {
      if (j == v[i].size() - 1) {
        cout << v[i][j];
      } else {
        cout << v[i][j] << ", ";
      }
    }
    if (i == v.size() - 1) {
      cout << "]";
    } else {
      cout << "], ";
    }
  }
  cout << "]" << endl;
}

vector<vector<int>> foo(int row, int col) {
  vector<vector<int>> v = {};
  for (int i = 0; i < col; i++) {
    vector<int> tmp(row, 1);
    v.push_back(tmp);
  }
  matrixPrint(v);
  return v;
}

int main(int argc, char const *argv[])
{
  vector<vector<int>> v1 {{0,0,0,0},{0,0,0,0},{0,0,0,0}};
  vector<vector<int>> v2 {{0,1,2,3},{0,1,2,3},{0,1,2,3},{0,1,2,3},{0,1,2,3}};
  vector<vector<int>> v3 {{0,0,0},{0,0,1},{0,0,2}};
  matrixPrint(v1);
  matrixPrint(v2);
  matrixPrint(v3);
  foo(5, 6);
  return 0;
}
